package com.bw.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bw.core.result.ResponseResult;
import com.bw.core.vo.FindOneBankResVo;
import com.bw.core.vo.UserVo;
import com.bw.user.pojo.TbUser;
import com.bw.user.vo.LoginMessage;
import com.bw.user.vo.LoginReqVo;
import com.bw.user.vo.RegisterVo;
import org.springframework.web.bind.annotation.RequestParam;
import com.bw.user.vo.SendReqVo;

import java.util.List;


/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author lv
 * @since 2021-03-23
 */
public interface TbUserService extends IService<TbUser> {

    TbUser findUser(String phone);

    ResponseResult findUser(LoginReqVo loginReqVo);

    ResponseResult register(RegisterVo registerVo);

    ResponseResult updateUser(TbUser user, String newpassword);

    ResponseResult loginpwd(LoginMessage loginMessage);

    ResponseResult findpwd(LoginMessage loginMessage);

    ResponseResult send(SendReqVo sendReqVo);

    ResponseResult loginmsg(LoginMessage loginMessage);

    TbUser findByToken(String token);
    //---------风控---------风控--------风控---------风控----------


    UserVo findUserMessage(Long userId);

    List<String> findLinkMan(Long userId);

    List<String> findCallBook(Long userId);

    String findTaoBao(Long userId);

    String findOperator(Long userId);



    //---------风控---------风控--------风控---------风控----------


    FindOneBankResVo findBankResVo(Long userId);

}
